<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="dp">
        <span>{{ title }}</span>
        <div>
          <slot name="btn"></slot>
        </div>
      </div>
      <div class="text">
        <slot></slot>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "标题",
    },
  },
};
</script>

<style lang="less" scoped>
.dp {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>